package com.daylightrobbery.server.packet.room;

import com.daylightrobbery.server.entity.Room;
import com.daylightrobbery.server.packet.type.DataPacket;
import com.daylightrobbery.server.packet.type.RoomDataPacket;
import org.springframework.stereotype.Component;

@Component
public class ShowRoomPacket implements RoomDataPacket {

    private Room room;
    private int type = 20001;

    public Room getRoom() {
        return room;
    }

    public ShowRoomPacket setRoom(Room room) {
        this.room = room;
        return this;
    }

    @Override
    public DataPacket process() {
        return null;
    }

    @Override
    public int getType() {
        return type;
    }


    @Override
    public int getRoomId() {
        return room.getRoomId();
    }
}
